package com.gilight.base.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gilight.base.dto.goods.GroupShopDTO;
import com.gilight.base.model.GroupShopDO;
import com.gilight.base.model.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface GroupShopMapper extends IMapper<GroupShopDO> {

    public Page<GroupShopDTO> getGroupShopPage(IPage page);

    public GroupShopDTO detail(Long groupShopId);

    /**
     * 增加当前人数
     * @param id 团购活动Id
     * @param num 增加人数量
     * @return
     */
    public Integer incCurrentNum(@Param("id") Long id,@Param("num") Integer num);

}
